﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using SevenInvaders.common;
using SevenInvaders.LEVEL_PEDRO;

namespace SevenInvaders.LEVEL_PEDRO
{
    class Vida : Enemy
    {

        int numeroVida;

        public Vida(Texture2D texture, int numeroVida)
            : base(texture)
        {
            //this.Position = position;
            this.numeroVida = numeroVida;
            
        }

        public void Update(GameTime gameTime)
        {
            if (numeroVida == 1)
            {
                this.Position = new Vector2(0, 0);
            }

            if (numeroVida == 2)
            {
                this.Position = new Vector2(1 + this.Texture.Width, 0);
            }

            if (numeroVida == 3)
            {
                this.Position = new Vector2(1 + this.Texture.Width * 2, 0);
            }


            if (numeroVida == 11)
            {
                this.Position = new Vector2(800 - this.Texture.Width, 0);
            }

            if (numeroVida == 22)
            {
                this.Position = new Vector2(800 - this.Texture.Width * 2, 0);
            }

            if (numeroVida == 33)
            {
                this.Position = new Vector2(800 - this.Texture.Width * 3, 0);
            }


        }
    }
}
